package cn.monkey.family.server.domain.sys.address;

import cn.monkey.family.data.Result;
import cn.monkey.family.data.context.RequestContext;
import cn.monkey.family.data.crud.CrudService;
import cn.monkey.family.data.sys.address.AddressDto;
import cn.monkey.family.data.sys.address.AddressQueryRequest;
import cn.monkey.family.data.sys.address.AddressTree;
import cn.monkey.family.data.sys.address.AddressVo;

import java.util.Collection;

public interface IAddressService extends CrudService<String, AddressQueryRequest, AddressDto, AddressVo> {
    Result<Collection<AddressTree>> readTree(RequestContext requestContext, AddressQueryRequest queryRequest);
}
